package net.huashitong.ssydt.provider.exam.mapper;


import net.huashitong.ssydt.exam.entity.SsExamErrorRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsExamErrorRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SsExamErrorRecord record);

    int insertSelective(SsExamErrorRecord record);

    SsExamErrorRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsExamErrorRecord record);

    int updateByPrimaryKey(SsExamErrorRecord record);

    SsExamErrorRecord getByUserIdWithBelongYearMonth(SsExamErrorRecord record);

    List<SsExamErrorRecord> findBelongYearMonthDescByUserId(String userId);

    int countLessTanErrorQuestionId(Long errorQuestionId);

    int deleteByUserIdWithBelongYearMonth(SsExamErrorRecord record);

    int deleteByUserId(String userId);
}